package com.authService.mapper;


import com.authService.entity.SysMenuEntity;
import com.authService.pojo.req.MenuReqDTO;
import com.authService.pojo.res.MenuResDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统菜单表 Mapper 接口
 * </p>
 *
 * @author xiaopeng
 * @since 2024-09-08
 */
public interface SysMenuMapper extends BaseMapper<SysMenuEntity> {

    /**
     * 列表查询
     * @param reqDTO
     * @return
     */
    List<MenuResDTO> selectMenuList(@Param("params") MenuReqDTO reqDTO);


    String queryLastMenuCodeByParentId(@Param("parentId") Long parentId);

}
